import { ApiCall } from "tsrpc";
import { ReqStart, ResStart } from "../../../../shared/master/copy/cloister/PtlStart";
import { player } from "../../../../model/fight/body/player";
import manage_word from "../../../model/manage/manage_word";
import { template } from "../../../../shared/master/MsgAction";

export default async function (call: ApiCall<ReqStart, ResStart>) {
    call.succ({})
    let user = call.req._player as player;
    let res = await manage_word.transfer(user,'EndlessCorridor')
    await user.sendMsg(template.default, res.msg);
}